//
//  dViewController.m
//  Surveyer
//
//  Created by Qikun Guo on 13-8-4.
//  Copyright (c) 2013年 Tim. All rights reserved.
//

#import "dViewController.h"
#import "Flurry.h"

@implementation dViewController

- (BOOL)shouldAutorotate
{
    return NO;
}

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        self.editCount = 0;
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
}
                                                                         
- (void)viewWillAppear:(BOOL)animated
{
    if (self.currentItem.type)
        [Flurry logEvent:@"dViewController" withParameters:@{@"type":self.currentItem.type} timed:YES];
    else
        [Flurry logEvent:@"dViewController" withParameters:@{@"type":@"BLANK"} timed:YES];
}

- (void)viewWillDisappear:(BOOL)animated
{
    [Flurry endTimedEvent:@"dViewController" withParameters:nil];
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (NSUInteger)supportedInterfaceOrientations
{
    return UIInterfaceOrientationMaskLandscape;
}
@end